package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 附详情对象 gc_attached_data
 *
 * @author ruoyi
 * @date 2025-05-09
 */
public class SysAttachedData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 类型 1=模版1，2=模板2 */
    @Excel(name = "类型")
    private Long type;

    /** 附表id */
    private Long attachedId;

    /** 桩号 */
    @Excel(name = "桩号")
    private String pileNumber;

    /** 桩型 */
    @Excel(name = "桩型")
    private String pileType;

    /** 桩长 */
    @Excel(name = "桩长")
    private String pileLength;

    /** 桩径 */
    @Excel(name = "桩径")
    private String diameter;

    /** 桩端持力层 */
    @Excel(name = "桩端持力层")
    private String pileLayer;

    /** 砼强度 */
    @Excel(name = "砼强度")
    private String goneStrength;

    /** 预估抗压极限值(kN) */
    @Excel(name = "预估抗压极限值(kN)")
    private String compressionOne;

    /** 预估水平/抗拔极限值(kN)  */
    @Excel(name = "预估水平/抗拔极限值(kN) ")
    private String compressionTwo;

    /** 成桩日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成桩日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pileDate;

    /** 试验方法 */
    @Excel(name = "试验方法")
    private String testMethod;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }
    public void setAttachedId(Long attachedId)
    {
        this.attachedId = attachedId;
    }

    public Long getAttachedId()
    {
        return attachedId;
    }
    public void setPileNumber(String pileNumber)
    {
        this.pileNumber = pileNumber;
    }

    public String getPileNumber()
    {
        return pileNumber;
    }
    public void setPileType(String pileType)
    {
        this.pileType = pileType;
    }

    public String getPileType()
    {
        return pileType;
    }
    public void setPileLength(String pileLength)
    {
        this.pileLength = pileLength;
    }

    public String getPileLength()
    {
        return pileLength;
    }
    public void setDiameter(String diameter)
    {
        this.diameter = diameter;
    }

    public String getDiameter()
    {
        return diameter;
    }
    public void setPileLayer(String pileLayer)
    {
        this.pileLayer = pileLayer;
    }

    public String getPileLayer()
    {
        return pileLayer;
    }
    public void setGoneStrength(String goneStrength)
    {
        this.goneStrength = goneStrength;
    }

    public String getGoneStrength()
    {
        return goneStrength;
    }
    public void setCompressionOne(String compressionOne)
    {
        this.compressionOne = compressionOne;
    }

    public String getCompressionOne()
    {
        return compressionOne;
    }
    public void setCompressionTwo(String compressionTwo)
    {
        this.compressionTwo = compressionTwo;
    }

    public String getCompressionTwo()
    {
        return compressionTwo;
    }
    public void setPileDate(Date pileDate)
    {
        this.pileDate = pileDate;
    }

    public Date getPileDate()
    {
        return pileDate;
    }
    public void setTestMethod(String testMethod)
    {
        this.testMethod = testMethod;
    }

    public String getTestMethod()
    {
        return testMethod;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("attachedId", getAttachedId())
            .append("pileNumber", getPileNumber())
            .append("pileType", getPileType())
            .append("pileLength", getPileLength())
            .append("diameter", getDiameter())
            .append("pileLayer", getPileLayer())
            .append("goneStrength", getGoneStrength())
            .append("compressionOne", getCompressionOne())
            .append("compressionTwo", getCompressionTwo())
            .append("pileDate", getPileDate())
            .append("testMethod", getTestMethod())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .toString();
    }
}
